package com.my.mapper;

import com.my.bean.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.my.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 角色表 Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-26
 */
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> selectMyPage(@Param("map") Map map,@Param("param") Role role,@Param("areaid")Long areaid,@Param("admin")boolean admin);
     int countMyPage( @Param("map") Map map,@Param("param") Role role,@Param("areaid")Long areaid,@Param("admin")boolean admin);

    //指定人可以添加房间
    boolean  updateRoleValue();

}